import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '物料名称',
    align: "center", resizable: true,
    dataIndex: 'materialName'
  },
  {
    title: '物料类型',
    align: "center", resizable: true,
    dataIndex: 'materialType'
  },
  {
    title: '单价',
    align: "center", resizable: true,
    dataIndex: 'unitPrice'
  },
  {
    title: '供应商ID',
    align: "center", resizable: true,
    dataIndex: 'supplierId'
  },
  {
    title: '单位（如：件、米、吨等）',
    align: "center", resizable: true,
    dataIndex: 'unit'
  },
  {
    title: '物料表id',
    align: "center", resizable: true,
    dataIndex: 'materialId'
  },
  {
    title: '数量',
    align: "center", resizable: true,
    dataIndex: 'quantity'
  },
  {
    title: '图片',
    align: "center", resizable: true,
    dataIndex: 'fileRecordId'
  },
  {
    title: '任务id',
    align: "center", resizable: true,
    dataIndex: 'taskId'
  },
];

// 高级查询数据
export const superQuerySchema = {
  materialName: {title: '物料名称',order: 0,view: 'text', type: 'string',},
  materialType: {title: '物料类型',order: 1,view: 'text', type: 'string',},
  unitPrice: {title: '单价',order: 2,view: 'number', type: 'number',},
  supplierId: {title: '供应商ID',order: 3,view: 'text', type: 'string',},
  unit: {title: '单位（如：件、米、吨等）',order: 4,view: 'text', type: 'string',},
  materialId: {title: '物料表id',order: 5,view: 'text', type: 'string',},
  quantity: {title: '数量',order: 6,view: 'number', type: 'number',},
  fileRecordId: {title: '图片',order: 7,view: 'text', type: 'string',},
  taskId: {title: '任务id',order: 8,view: 'text', type: 'string',},
};
